<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>检查报告详情</title>
    <%- include('../_global/baseLibsJKDA') %>
    <link rel="stylesheet" href="/static/css/public.css"/>
    <link rel="stylesheet" href="/static/css/page-main.css"/>
    <style>
        .doctor-header{
            padding: 0 15px;
            line-height: 1.1rem;
            background-color: white;
            border-bottom: 1px solid #d9d9d9;
        }
        .doctor-header h3{
            font-size: 1rem;
            color: #101010;
        }
        .doctor-header p{
            font-size: .92rem;
            color: #909090;
            padding-bottom: 10px;
        }
        .doctor-detail{
            background-color: white;
            padding: 10px 20px;
            color: #101010;
            font-size: .92rem;
            line-height: .92rem;
        }
        .doctor-detail div{
            line-height: 1.6rem;
        }
        .doctor-detail h5{
            font-size: 1rem;
            padding: 1rem 0;
            font-weight: bold;
        }
    </style>
</head>
<body>
<header class="header-box grey fixed">
    <div class="header-content">
        <div class="left-tool">
            <a class="back" href="javascript:void(0);"><i class="iconfont icon-back"></i></a>
        </div>
        <div class="title">检查报告详情</div>
    </div>
</header>
<div class="doctor-header">
    <h3 class="hosName">

    </h3>
    <p class="reportDate">

    </p>
</div>
    <div class="doctor-detail " >

    </div>
</body>
<script src="/static/js/gzd/pageUrl.js"></script>
<script src="/static/js/gzd/jkda.js"></script>
<script>




    var page_jcbg = (function($, page_jcbg) {
        var hosName=$.QuickUrlUtils.getRequest("hosName");
        var reportDate= $.QuickUrlUtils.getRequest("reportDate");
        var zxwyh =$.QuickUrlUtils.getRequest("zxwyh");

        var jcbgData=StoreCache.getCache("jcbgData");
        var jcbg=JSON.parse(jcbgData);


        var cfg_def = {
            jcbgDetail: jcbgDetail,
        }

        page_jcbg.init = function(cfg){
            $.extend(page_jcbg, cfg_def, cfg);
            $(".hosName").text(hosName);
            $(".reportDate").text(reportDate);
            $.QuickRemote.AjaxJson({
                funcName: "/api/gzd/jkda/queryJcbgxq"
                ,callback:page_jcbg.jcbgDetail
                ,params:{
                    surveyingType:"1", //1门诊 2住院
                    zxwyh:zxwyh,//中心唯一号
                    reportId:jcbg.reportId,//报告id
                    medicalOrgId:jcbg.hosCode,//医疗机构代码
                    cardId:"",//检查号
                    serialNum:jcbg.jzlsh,//就诊流水号
                    cardDate:"",//报告日期
                    cardType:"",//卡类型(0-社保卡；1-医保卡；2-自费卡)
                    userCardNo:"",//卡号
                }
            });
        }

        return page_jcbg;

        function jcbgDetail(response){
            $(".doctor-detail").html(template("jcbgList", {data:response}));
        }
    })(jQuery, {});


</script>
<script type="text/html" id="jcbgList">
    {{each data}}
        <div>
            <span class="left">检查项目：</span>
            <span class="checkName">{{$value.checkNames}}</span>
        </div>
         <div>
            <span class="left">检查部位：</span>
            <span class="checkName">{{$value.checkPoint}}</span>
        </div>
        <div>
            <span class="left">报告医生：</span>
            <span class="hosName">{{$value.docName}}</span>
        </div>
        <div>
            <span class="left">报告日期：</span>
            <span class="reportDate">{{$value.reportDate}}</span>
        </div>
        <div>
            <span class="left">报告单号：</span>
            <span class="reportId">{{$value.reportId}}</span>
        </div>
        <h5>影像表现:</h5>
        <div>{{$value.examinationFinding}}</div>

        <h5>影像诊断:</h5>
        <div>{{$value.imgDiagnose}}</div>
    {{/each}}
</script>
</html>